package com.huatai.user.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @program: ht-system
 * @description: 加密方式配置
 * @author: songxiude
 * @create: 2023-02-06 16:56
 **/
@Configuration
public class PasswordConfig {
	@Bean
	public PasswordEncoder getPasswordEncoder(){
		return new BCryptPasswordEncoder();
	}
}
